package me.hys.dao.doctor;

import java.util.List;
import java.util.Map;

import me.hys.base.ApiResult;
import me.hys.base.IBaseMapper;
import me.hys.bo.doctor.DoctorBo;
import me.hys.bo.doctor.DoctorNearBo;
import me.hys.bo.doctor.ReservationBo;
import me.hys.entity.doctor.DoctorEntity;

/**
 * Author: @author HYS . <br>
 * Date: 2015-9-20 下午6:28:22 . <br>
 * Function: 医生
 */
public interface IDoctorMapper extends IBaseMapper<DoctorEntity> {
	/**
	 * @Title : findDetailById
	 * @Description : 获取详情
	 */
	DoctorBo findDetailById(String id);

	/**
	 * @Title : findPageBo
	 * @Description : 获取列表
	 */
	List<DoctorBo> findPageBo(Map<String, Object> cond);

	/**
	 * @Title : updateReservation
	 * @Description : 更新预约时间段
	 */
	int updateReservation(ReservationBo reservation);

	/**
	 * @Title : findReservation
	 * @Description : 获取预约时间段
	 */
	ReservationBo findReservation(String id);

	/**
	 * @Title : status
	 * @Description : 医生状态
	 */
	ApiResult doctorInfo(double longitude, double latitude, int status);

	/**
	 * @Title : findNearPageBo
	 * @Description : 获取附近的医生列表
	 */
	List<DoctorNearBo> findNearPageBo(Map<String, Object> cond);

	/**
	 * @Title : findNearPageBoCount
	 * @Description : 获取附近的医生列表
	 */
	int findNearPageBoCount(Map<String, Object> cond);
}
